<template>
	<view>
		<zy-search :h-list="list" :is-focus="true" :is-block="false" :show-want="true"></zy-search>
	</view>
</template>

<script>
	import zySearch from '../../components/zy-search/zy-search.vue'
	export default {
		components: {
			zySearch
		},
		onShow() {
			// 父页面中取出缓存数据传递给组件
			let _this = this;
			try {
				const value = uni.getStorageSync('search_cache');
				if (value) {
					_this.list = value;
				}
			} catch (e) {
				
			}
		},
		data() {
			return {
				list:[]
			}
		}
	}
</script>

<style>
</style>
